package com.spring.Interceptor;

import org.springframework.stereotype.Component;

import com.spring.annoation.Interceptorn;
import com.spring.http.HttpContext;
@Interceptorn(value = "", weight = 3)
@Component
public class HandlerInterceptor implements Interceptor {
	/**
	 * handler执行之后
	 */
	@Override
	public void afterCompletion(HttpContext context) {
		System.out.println("afterCompletion HandlerInterceptor");
	}

	/**
	 * handler 执行之前
	 */
	@Override
	public boolean preHandle(HttpContext context) {
		//
		System.out.println("preHandler HandlerInterceptor");
		return true;
	}

}
